/*
 * @Author: your name
 * @Date: 2020-11-02 17:37:06
 * @LastEditTime: 2020-11-19 09:59:06
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \wms2\src\utils\getRole.js
 */

export function getRole() {
  let isCtms = false
  const dataBranch = localStorage.getItem('dataBranch')
  try {
    const role = JSON.parse(dataBranch).softVersion.toUpperCase()
    if (role.includes('CTMS')) {
      isCtms = true
    }
  } catch (e) {

  }
  return isCtms
}
